import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useMenuStore = defineStore('menu', () => {
    const menu = ref<Array<any>>([])
    const setMenu = (newMenu: Array<any>) => {
        menu.value = newMenu
    }

    const getMenu = () => {
        return menu.value
    }
    return { menu , setMenu , getMenu }
})